package com.javaee.demov2.web.dto.ticket;


import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * description:
 *
 * @author: [你的作者名]
 * @date: [具体日期]
 */

// @ApiModel注解用于实体类上，主要用于对实体类添加额外的描述信息。
// @ApiModelProperty注解用于实体类的属性上，用于对属性添加额外的描述信息
@ApiModel(description = "新增票据Dto类")
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class TicketAddDto {
    //此处可以添加数据校验

    @ApiModelProperty(value = "票据编号", required = true)
    String ticketNumber;

    @ApiModelProperty(value = "票据开具方")
    String issuer;

    @ApiModelProperty(value = "票据接收方")
    String receiver;

    @ApiModelProperty(value = "票据开具时间", example = "2024-12-01T12:00:00")
    LocalDateTime issueTime;

    @ApiModelProperty(value = "票据金额")
    BigDecimal amount;

    @ApiModelProperty(value = "票据描述")
    String description;

    @ApiModelProperty(value = "票据类型", example = "发票", allowableValues = "发票,收据,提单等")
    String type;
}